<!DOCTYPE html>
<html xmlns="https://www.thymeleaf.org/">
<head>
<meta charset="UTF-8">
<title>thymleaf演示页面</title>
<link rel="stylesheet" th:href="@{/css/global.css}"/>
</head>
<body>

	hi页面
	<a th:href="@{/index/b}">跳转到b请求</a>
	<img th:src="@{/img/nvwu.jpg}" width="20" />
	
	<p th:text="${name}"/>
	
	<p th:text="${#dates.format(now,'yyyy年MM月dd HH:mm:ss')}"/>


	<h2>调用内置JSP对象的属性和方法</h2>
	获取客户端IP:<p th:text="${#httpServletRequest.getRemoteAddr()}"/><br/>
	获取会话ID:<p th:text="${#httpSession.getId()}"/><br/>
	获取会话ID:<p th:text="${#httpServletRequest.getServletContext().getRealPath('/')}"/><br/>
	
	<h2>数据处理</h2>
	获取set或者list或者数组：<span th:text="${list[1]}"/>
	
	<h2>if逻辑判断</h2>
    <span th:if="${age < 18}">
	你还是个未成年人！
	</span>
	<span th:if="${age eq 16}">
	你好年轻
	</span>
	
	<span th:switch="${age}">
	<p th:case="15">你真是。。。。。英雄出少年</p>
	<p th:case="*">一般般,还需努力！</p>
	</span>
	
	<div th:each="v:${list}">
		<span th:text="${v}"/>
	</div>
	
	<div th:include="@{/footer} :: copyright" th:with="a=淘宝"/>
</body>
</html>